package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_EVALUATE")
@Schema(description="评价列表")
public class EquipmentEvaluate extends BaseEntity {

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "SORT_ID_")
    @Schema(description = "顺序ID")
    private Integer sortId;

    @Column(name = "CONTENT_")
    @Schema(description = "评价内容")
    private String content;

    @Column(name = "TYPE_")
    @Schema(description = "评价类型")
    @Dict(dicCode = "MB_ERP_EQUIPMENT_EVALUATE_TYPE")
    private String type;


}
